import request from "@/utils/request";
export function getList(params) {
  return request({
    url: "/member/czSpec/getList",
    method: "get",
    params,
  });
}
export function getSysList(params) {
  return request({
    url: "/member/czSpec/getSysList",
    method: "get",
    params,
  });
}

export function detail(id) {
  return request({
    url: "/member/czSpec/detail",
    method: "get",
    params: { id },
  });
}
export function change(data) {
  return request({
    url: "/member/czSpec/change",
    method: "post",
    data,
  });
}
export function add(data) {
  return request({
    url: "/member/czSpec/add",
    method: "post",
    data,
  });
}
export function del(id) {
  return request({
    url: "/member/czSpec/del",
    method: "post",
    data: { id },
  });
}
// 获取自建产品分页
export function getMyList(params) {
  return request({
    url: "/member/czSpec/getMyList",
    method: "get",
    params,
  });
}
export function getMyAllList() {
  return request({
    url: "/member/czSpec/getMyAllList",
    method: "get",
  });
}
export function getAllList() {
  return request({
    url: "/member/czSpec/getAllList",
    method: "get",
  });
}
export function changeMore(data) {
  return request({
    url: "/member/czSpec/merchantChangeMore",
    method: "post",
    data,
  });
}
export function changeSysMore(data) {
  return request({
    url: "/member/czSpec/merchantChangSysMore",
    method: "post",
    data,
  });
}
// 获取产品列表
export function getProductList(params) {
  return request({
    url: "/member/czSpec/getProductList",
    method: "get",
    params,
  });
}
// 单笔充值
export function singleMobileRecharge(data) {
  return request({
    url: "/member/order/singleMobileRecharge",
    method: "post",
    data,
  });
}
